<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="view/admin/style/basic.css" />
<link rel="stylesheet" type="text/css" href="view/admin/style/goods.css" />
<script type="text/javascript" src="view/admin/js/ajax.js"></script>
<script type="text/javascript" src="view/admin/js/goods.js"></script>
<script type="text/javascript" src="./ckeditor/ckeditor.js"></script>
<title>Insert title here</title>
</head>
<body>
    <h2><a href="?a=goods">返回商品列表</a>商品 -- 添加商品</h2>
     <form method="post" name="add" action="?a=goods&m=add">
        <dl class="form">
            <dd>商品类型：<select name="nav" id="nav">
                        <option value="-1" selected="selected">--请选择一个商品的类型--</option>
                        {foreach from=$allNav key=key item=value}
                        <optgroup label="{$value->name}">
                        {html_options options=$value->child}
                        </optgroup>
                        {/foreach}
                        </select> <span class="red">[必选]</span>
            </dd>
            <dd>商品品牌：<select name="brand" id="brand">
                        <option value="-1" selected="selected">--请选择一个商品的品牌--</option>
                        </select> <span class="red">[必选]</span>
            </dd>
            <dd>商品名称：<input type="text" name="name" class="text"/> <span class="red">[必填]</span> ( * 2~100字符之间)</dd>
            <dd>商品编号：<input type="text" name="sn" class="text"/> <span class="red">[必填]</span> ( * 2~50字符之间,唯一)</dd>
            <dd>销 售 价：<input type="text" name="price_sale" class="text small" value="0" /> 市 场 价：<input type="text" name="price_market" class="text small" value="0"/> 成 本 价：<input type="text" name="price_cost" class="text small" value="0"/>( * 成本价不在前提显示)</dd>
            <dd>关 键 字：<input type="text" name="keyword" class="text" /> (例如：换季|白色|冬季;每个关键词使用'|'隔开)</dd>
            <dd>计量单位：<input type="text" name="unit" class="text small"/> 重　　量：<input type="text" name="weight" value="0" class="text small"/> ( * 计量单位：个，kg，件；重量：默认kg)</dd>
            <dd>上传图片：<input type="text" name="thumbnail" class="text" readonly="readonly">
                <input type="button" value="上传缩略图" onclick="centerWindow('?a=call&m=upFile','upfile',400,150);">
                <img name="pic" style="display:none" />　(图片类型jpg/png/gif任选一,大小不超200k)</dd>
            <dd><textarea id="TextArea1" name="content" class="ckeditor"></textarea></dd>
            <dd>是否上架：<input type="radio" name="is_up" value="1" checked="checked" />是 <input type="radio" name="is_up" value="0" />否　　免运费：<input type="radio" name="is_freight" value="1" checked="checked"/>是 <input type="radio" name="is_freight" value="0">否</dd>    
            <dd>售后服务：{html_radios name='service' options=$allService checked=$serviceSelected}</dd>
            <dd>库　　存：<input type="text" name="inventory" class="text small" value="100"/> 库存告急:<input type="text" name="warn_inventory" class="text small" value="1"/> ( * 库存达到额定数量将会在后台提醒)</dd>
            <dd><input type="submit" name="send" value="新增商品" onclick="return checkAddGoods();"/></dd>
        </dl>
    </form>
</body>
</html>